<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="box">
      <div v-if="score > 90">A</div>
      <div v-else-if="score > 70">B</div>
      <div v-else-if="score > 60">C</div>
      <div v-else-if="score < 60 && score > 0">D</div>
      <div v-else>其他</div>
    </div>
    <script src="./vue.js"></script>
    <script>
      const app = new Vue({
        el: "#box",
        data: {
          score: 40,
        },
      });
    </script>
  </body>
</html>
